/* ================= Component A Gallery Styles ================= */
.gallery-hero {
    height: 50vh;
    min-height: 400px;
    background-image: url("assets/gallery_images/slide_11_image18.jpeg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.gallery-section {
    background-color: var(--gray-bg);
}

.gallery-location {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.location-header {
    margin-bottom: 2rem;
    text-align: center;
}

.location-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.location-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    grid-auto-flow: dense;
}

.gallery-grid.style-compare {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-grid.style-masonry {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-item.span-2 {
    grid-column: span 2;
}

.gallery-item.span-full {
    grid-column: 1 / -1;
    height: 400px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-before {
    background: rgba(231, 76, 60, 0.4);
}

.badge-after {
    background: rgba(140, 198, 63, 0.4);
}

/* ================= Lightbox Modal ================= */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: #f1f1f1;
    cursor: pointer;
    z-index: 10001;
    padding: 5px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-color);
    outline: none;
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .gallery-grid,
    .gallery-grid.style-compare,
    .gallery-grid.style-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item.span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .gallery-grid,
    .gallery-grid.style-compare,
    .gallery-grid.style-masonry {
        grid-template-columns: 1fr;
    }
    .gallery-item.span-full {
        height: 250px;
    }
    .gallery-location {
        padding: 1.5rem;
    }
}
